package easycloud.ecs.server.service;

import java.util.Set;

import javax.inject.Inject;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import easycloud.ecs.common.domain.Sync;
import easycloud.ecs.common.repository.SyncRepository;
import easycloud.ecs.common.service.SyncService;

@Service
@Transactional(readOnly = true)
public class SyncServiceImpl implements SyncService {

	private static final Log logger = LogFactory.getLog(SyncServiceImpl.class);
	
	@Inject
	private SyncRepository syncRepository;
	
	Set<Sync> findFolders(Integer providerId){
		return syncRepository.findByProvider(providerId);
	}
	
}
